/* 实习岗位详情页样式 */
:root {
    --primary-color: #3f51b5;
    --secondary-color: #ff4081;
    --text-color: #333;
    --text-secondary: #666;
    --border-color: #e0e0e0;
    --highlight-bg: #f0f4ff;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: var(--text-color);
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
    padding: 0 15px;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.page-header.sticky {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.back-button i {
    font-size: 20px;
    color: var(--text-color);
}

.page-header .title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    transition: all 0.3s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-button, .favorite-btn {
    background: none;
    border: none;
    padding: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.share-button i, .favorite-btn i {
    font-size: 18px;
    margin-right: 4px;
}

.favorite-btn.active {
    color: #f44336;
}

/* 主内容区域 */
.main-content {
    padding: 15px;
    padding-bottom: 80px; /* 为底部导航和申请按钮留出空间 */
}

/* 工作头部信息 */
.job-header {
    background-color: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.company-banner {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.company-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-info-header {
    padding: 15px;
}

.company-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid var(--border-color);
}

.company-text {
    flex: 1;
}

.company-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.company-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.job-title-section {
    margin-bottom: 15px;
}

.job-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text-color);
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: var(--highlight-bg);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.job-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: flex-start;
}

.meta-item i {
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 8px;
    margin-top: 2px;
}

.meta-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 2px;
}

.meta-item p {
    margin: 0;
}

.meta-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 内容卡片通用样式 */
.content-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.section-title i {
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 8px;
}

.section-title h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

/* 职位亮点 */
.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.highlights-list li {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
}

.highlight-icon {
    display: inline-flex;
    color: var(--primary-color);
    margin-right: 8px;
}

/* 职位描述 */
.position-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 15px 0 10px;
    color: var(--text-color);
}

.position-content h3:first-child {
    margin-top: 0;
}

.responsibilities-list, .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.responsibilities-list li, .requirements-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.number {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 500;
}

/* 岗位福利 */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
}

.benefit-icon {
    display: inline-flex;
    color: var(--primary-color);
    margin-right: 8px;
}

/* 公司介绍 */
.company-profile {
    font-size: 14px;
}

.company-basic-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-label {
    color: var(--text-secondary);
    margin-right: 5px;
}

.info-value {
    font-weight: 500;
}

.company-intro, .company-culture {
    margin-bottom: 15px;
    line-height: 1.6;
}

.company-intro p, .company-culture p {
    margin: 0;
}

/* 职位信息 */
.job-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 相关职位 */
.related-jobs {
    display: grid;
    gap: 15px;
}

.job-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-card:active {
    transform: scale(0.98);
}

.job-card-content {
    display: flex;
    padding: 12px;
}

.job-card .company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

.job-info {
    flex: 1;
}

.job-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.company-location {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.salary {
    font-size: 14px;
    font-weight: 500;
    color: #f57c00;
    margin-bottom: 6px;
}

.job-card .job-tags {
    margin-top: 8px;
}

.job-card .tag {
    font-size: 11px;
    padding: 3px 8px;
}

/* 底部申请按钮 */
.bottom-action {
    position: fixed;
    bottom: 60px; /* 考虑底部导航高度 */
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.apply-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background-color: #303f9f;
}

.apply-btn:disabled {
    background-color: #bdbdbd;
    cursor: not-allowed;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
}

.apply-form {
    padding: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

.resume-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.upload-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--light-gray);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background-color: #e0e0e0;
}

.file-name {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.submit-btn {
    width: 100%;
    padding: 12px 0;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #303f9f;
}

/* 加载指示器 - 完全隐藏 */
.loading-spinner {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

.loading-spinner.show {
    display: none !important;
}

.spinner-inner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(63, 81, 181, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 暗黑模式下的加载指示器 */
@media (prefers-color-scheme: dark) {
    .loading-spinner {
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    .spinner-inner {
        border-color: rgba(255, 255, 255, 0.1);
        border-top-color: var(--primary-color);
    }
}

/* 消息提示 */
.toast-message {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(51, 51, 51, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 点击涟漪效果 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 暗黑模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f5f5f5;
        --text-secondary: #aaaaaa;
        --border-color: #333333;
        --highlight-bg: #2c3352;
    }
    
    body {
        background-color: #121212;
    }
    
    .page-header, .content-card, .bottom-action, .modal-content, .job-header {
        background-color: #1e1e1e;
    }
    
    .back-button i, .page-header .title {
        color: var(--text-color);
    }
    
    .job-meta {
        background-color: #252525;
    }
    
    .upload-btn {
        background-color: #333;
        color: #f5f5f5;
    }
    
    .upload-btn:hover {
        background-color: #444;
    }
    
    .toast-message {
        background-color: rgba(240, 240, 240, 0.9);
        color: #333;
    }
    
    .ripple-effect {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* 适配不同尺寸设备 */
@media screen and (max-width: 360px) {
    .job-meta {
        grid-template-columns: 1fr;
    }
    
    .highlights-list {
        grid-template-columns: 1fr;
    }
}

/* iPhone适配 */
@media screen and (min-width: 375px) and (max-width: 390px) {
    .job-meta {
        font-size: 13px;
    }
    
    .company-logo {
        width: 45px;
        height: 45px;
    }
}

/* iPhone 15适配 */
@media screen and (width: 390px) and (height: 844px) {
    .page-header {
        height: 56px;
        padding-top: env(safe-area-inset-top);
    }
    
    .main-content {
        padding-top: 15px;
    }
    
    .bottom-action {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
    
    .tab-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 适配小屏幕设备 */
@media screen and (max-height: 700px) {
    .company-banner {
        height: 100px;
    }
    
    .main-content {
        padding-top: 10px;
        padding-bottom: 70px;
    }
    
    .content-card {
        padding: 12px;
        margin-bottom: 12px;
    }
}

/* 适配异形屏 */
@supports (padding-top: env(safe-area-inset-top)) {
    .page-header {
        padding-top: env(safe-area-inset-top);
        height: calc(52px + env(safe-area-inset-top));
    }
    
    .bottom-action {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
    
    .tab-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }
} 